﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace University.Models
{
    public class Group
    {
        public int GroupId { get; set; }
        [Required(ErrorMessage = "Please provide GROUP NAME")]
        [Display(Name = "Group Name")]
        public string Name { get; set; }

        [Required(ErrorMessage = "Please provide group type")]
        [Display(Name = "Group Type Name")]
        public string Type { get; set; }

        [Required(ErrorMessage = "Tuition language required!")]
        [Display(Name = "Tuition Language")]
        public string Language { get; set; }

        [Required(ErrorMessage = "Please provide Year Start")]
        [Display(Name = "Start Year")]
        public DateTime YearStart { get; set; }

        [Required(ErrorMessage = "Please provide Year Start")]
        [Display(Name = "Start Year")]
        public DateTime YearEnd { get; set; }

     
        public virtual Domain Domain { get; set; }
        public virtual ICollection<User> Users { get; set; }
        public virtual ICollection<Schedule> Schedules { get; set; }

    }
}